package com.sea.physical.mapper;

import com.sea.physical.entity.CreateDespatchFreight;
import com.sea.physical.entity.CreateDespatchSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreateDespatchFreightMapper {

    /**
     * 新增
     * @param freight
     * @return
     */
    int insert(CreateDespatchFreight freight);

    /**
     * 根据柜号查找
     * @param createId
     * @return
     */
    List<CreateDespatchFreight> findByCreateId(@Param("createId") Integer createId);

    /**
     * 更新
     * @param freight
     * @return
     */
    int updateFreight(CreateDespatchFreight freight);

    /**
     * 更新实际运费关税
     * @param createId
     * @return
     */
    int updateRealFreightTax(Integer createId);

    /**
     * 条件查询
     * @param createDespatchFreight
     * @return
     */
    List<CreateDespatchFreight> findByCnd(CreateDespatchFreight createDespatchFreight);

    /**
     * 查找明细
     * @return
     */
    List<CreateDespatchFreight> findDetail();

    /**
     * 查询指定
     * @param id
     * @return
     */
    CreateDespatchFreight findById(Integer id);

    /**
     * 更新
     * @param createDespatchFreight
     * @return
     */
    Integer update(CreateDespatchFreight createDespatchFreight);

    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(Integer id);
}
